import base from "/@/api/base";
import Axios from "/@/utils/Axios";

export function getResourceInfo(data: any): Promise<any> {
    return Axios.post(base.getResourceInfo, data);
}

export function delResource(id: string): Promise<any> {
    return Axios.post(base.delResource, {id});
}

export function uploadResource(params: any): Promise<any> {
    return Axios.post(`${base.uploadResource}`, params);
}

export function updateResource(params: any): Promise<any> {
    return Axios.put(`/backapi/updateResource/${params.id}`, params);
}


